#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:homework1_6.py
# author:wmf
# datetime:2021/3/14 19:46
# software: PyCharm
'''
this is function description
'''
# import module your need

#6  前面2个元素为0，1，输出100以内的斐波那契数列；

Fibonacci = [0,1]
i=1
while(Fibonacci[len(Fibonacci)-1]<=100):
    length=len(Fibonacci)
    Fibonacci_new=Fibonacci[length-1]+Fibonacci[length-2]
    Fibonacci.append(Fibonacci_new)
for x in Fibonacci:
    if(x<=100):
         print(x,end=" ")